#! /usr/bin/python3
# -*- coding: UTF-8 -*-

if __name__ == "__main__":
	raise Exception("不支持从这里调用")

__version__ = "1.0"
__all__ = ["MouseChshLoginModel"]

from com.mousechsh.common.data.MouseChshDbModel import MouseChshDbModel
from com.mousechsh.common.data.MouseChshField import MouseChshDateTimeField, MouseChshForeignStringField, \
	MouseChshIntegerField, MouseChshStringField


class MouseChshLoginModel(MouseChshDbModel):
	'''
	登录模型
	'''

	Id = MouseChshStringField('Id')
	Code = MouseChshStringField('Code')
	User = MouseChshForeignStringField('Id', linked_table='User')
	Domain = MouseChshForeignStringField('Id', linked_table='Domain')
	App = MouseChshForeignStringField('Id', linked_table='App')
	LoginTime = MouseChshDateTimeField('LoginTime')
	Alive = MouseChshIntegerField('Alive')
	ExpTime = MouseChshDateTimeField('ExpTime')

	class Meta:
		SchemaName = 'A_AD'
		TableName = 'T_Login'
